.bagpage{
  .main{
    .hotbag,.school-bag{
      margin-bottom: 30px;
      .menu{
        display: inline-block;
        margin-left: 25px;
        li{
            position: relative;
            display: inline-block;
            font-size: 14px;
            color: #1E1E1E;
            margin-right: 28px;
            border-bottom: 3px solid transparent;
            cursor: pointer;
            &:hover{
                color: #42bdeb;
                // border-bottom-color: #42bdeb;
                // &:after{
                //     content: "";
                //     position: absolute;
                //     bottom: 0;
                //     left: 50%;
                //     width: 0;
                //     height: 0;
                //     margin-left: -3px;
                //     border-width: 3px;
                //     border-style: solid;
                //     border-color: transparent transparent #42bdeb transparent;
                // }
            }
        }
        li.active{
            color: #42bdeb;
            border-bottom-color: #42bdeb;
            &:after{
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 0;
                margin-left: -3px;
                border-width: 3px;
                border-style: solid;
                border-color: transparent transparent #42bdeb transparent;
            }
        }
    }
      .left-content {
        margin-top: 10px;
        width: 900px;
        display: inline-block;
        h2 {
          margin-bottom: 15px;
          padding-right: 20px;
          .title {
            display: inline-block;
            .icon {
              margin-right: 15px;
            }
            span {
              vertical-align: -4px;
              font-size: 24px;
            }
          }
          .detail {
            float: right;
            span {
              display: inline-block;
              width: 57px;
              height: 19px;
              margin-top: 1px;
              margin-right: 15px;
              border: 1px solid #dbdbdb;
              border-radius: 5px;
              vertical-align: middle;
              color: #999999;
              font-size: 12px;
              text-align: center;
              line-height: 20px;
              cursor: pointer;
              i {
                margin-right: 5px;
              }
            }
            a {
              font-size: 14px;
              color: #42bdeb;
              i {
                margin-left: 10px;
                font-size: 22px;
                vertical-align: -2px;
              }
            }
          }
          .menu {
            display: inline-block;
            margin-left: 25px;
            li {
              position: relative;
              display: inline-block;
              font-size: 14px;
              color: #1E1E1E;
              margin-right: 28px;
              border-bottom: 3px solid transparent;
              cursor: pointer;
              &:hover {
                color: #42bdeb;
                border-bottom-color: #42bdeb;
                &:after {
                  content: "";
                  position: absolute;
                  bottom: 0;
                  left: 50%;
                  width: 0;
                  height: 0;
                  margin-left: -1.5px;
                  border-width: 3px;
                  border-style: solid;
                  border-color: transparent transparent #42bdeb transparent;
                }
              }
            }
            li.active {
              color: #42bdeb;
              border-bottom-color: #42bdeb;
              &:after {
                content: "";
                position: absolute;
                bottom: 0;
                left: 50%;
                width: 0;
                height: 0;
                margin-left: -3px;
                border-width: 3px;
                border-style: solid;
                border-color: transparent transparent #42bdeb transparent;
              }
            }
          }
        }
        .list {
          margin-bottom: 18px;
          li {
            display: inline-block;
            width: 160px;
            height: 162px;
            margin-right: 20px;
            overflow: hidden;
            border-radius: 4px;
            will-change: contents;
            &:hover {
              .description {
                height: 50px;
                color: #42bdeb;
                overflow: initial;
                text-overflow: initial;
                white-space: initial;
              }
              .img-contet {
                &:before,
                &::after {
                  width: 100%;
                  height: 100%;
                }
                &:after {
                  border-top-color: #42bdeb;
                  border-right-color: #42bdeb;
                  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
                }
                &:before {
                  border-bottom-color: #42bdeb;
                  border-left-color: #42bdeb;
                  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
                }
                .info {
                  transform: translateY(0);
                }
              }
            }
            .img-contet {
              position: relative;
              margin-bottom: 10px;
              overflow: hidden; // border: 2px solid transparent;
              &:before {
                display: block;
                position: absolute;
                content: '';
                bottom: 0;
                right: 0;
                width: 0;
                height: 0;
                transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                border: 2px solid transparent;
                box-sizing: border-box;
                border-radius: 4px;
              }
              &:after {
                display: block;
                position: absolute;
                content: '';
                top: 0;
                left: 0;
                width: 0;
                height: 0;
                transition: border-color 0s ease-in 0.4s, width 0.2s ease-in 0.2s, height 0.2s ease-in;
                border: 2px solid transparent;
                box-sizing: border-box;
                border-radius: 4px;
              }
              >img {
                width: 100%;
                height: 100px;
                border-radius: 4px;
              }
              .info {
                display: flex;
                align-items: center;
                height: 30px;
                position: absolute;
                right: 0;
                bottom: 0;
                left: 0;
                transition: all .2s ease .2s;
                transform: translateY(30px);
                background-color: #42bdeb;
                border-radius: 0 0 4px 4px;
                img {
                  width: 20px;
                  height: 20px;
                  margin: 0 5px;
                }
                span {
                  font-size: 12px;
                  color: #FFF;
                }
              }
            }
            .description {
              width: 100%;
              height: 20px;
              margin-bottom: 5px;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;
              transition: all .2s ease;
              font-size: 12px;
              color: #1E1E1E;
            }
          }
        }
        .resources {
          width: 880px;
          height: 120px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
      .rightContent {
        display: inline-block;
        vertical-align: top;
        width: 20%;
        height: 326px;
        overflow: hidden;
        box-shadow: 0px 0px 5px rgb(223, 223, 223);
        ul {
          li:nth-child(1) {
            width: 80px;
            height: 80px;
            background-size: 100% 100%;
            border-radius: 50%;
            margin: 20px auto;
          }
          li:nth-child(2) {
            text-align: center;
            .rig-conSp-left {
              display: inline-block;
              position: relative;
              font-size: 18px;
              font-weight: bold;
            }
            .rig-conSp-rig {
              position: absolute;
              bottom: 1px;
              right: -42px;
              i {
                display: inline-block;
                position: relative;
                height: 17px;
                line-height: 17px;
                background: #F4D347;
                padding: 0px 5px;
                padding-left: 18px;
                border-radius: 3px;
                font-size: 12px;
                color: white;
                margin-left: 5px;
                b {
                  position: absolute;
                  display: inline-block;
                  transform: scale(0.8, 0.7);
                  font-weight: normal;
                  left: 4px;
                  bottom: -1px;
                  font-style: italic;
                }
              }
            }
          }
          li:nth-child(3) {
            margin-top: 5px;
            .rig-conUl {
              display: flex;
              flex-direction: row;
              justify-content: center;
              li {
                width: 66px;
                height: 38px;
                span {
                  font-size: 18px;
                  display: block;
                  text-align: center;
                  
                }
                span:nth-child(2){
                  font-size: 12px;
                  color: darkgrey;
                }
              }
              .person-fans {
                margin: 0;
              }
              .person-post{
                border-left: 1px solid darkgrey;
                border-right: 1px solid darkgrey;
              }
              .person-many{
                margin: 0;
              }
              
            }
          }
          li:nth-child(4){
            .getpost,.contribute,.mybag{
              display: flex;
              flex-direction: row;
              align-items: center;
              font-size: 14px;
              width: 173px;
              height: 40px;
              line-height: 40px;
              color: white;
              background: #6FC93A;
              border-radius: 20px;
              margin: 20px auto;
              overflow: hidden;
              i{
                width: 17px;
                height: 18px;
                margin-left: 42px;
              }
              span{
                margin-left: 15px;
              }
            }
            .contribute{
              background: #42BEEC;
            }
            .mybag{
              background: #F2CC2C;
            }
          }
        }
      }
      .right-content, .ranking-content{
        display: inline-block;
        vertical-align: top;
        width: 20%;
        h2{
            margin-bottom: 21px;
            padding-top: 5px;
            font-size: 20px;
            color: #1E1E1E;
            .ranking{
                display: inline-block;
                margin-left: 9px;
                font-size: 16px;
                color: #929292;
            }
            .data{
                float: right;
                margin-top: 6px;
                font-size: 14px;
                color: #42beec;
                span{
                    display: inline-block;
                    margin: 0 5px;
                    opacity: .5;
                    border-bottom: 3px solid transparent;
                    cursor: pointer;
                    &:last-child{
                        margin: 0;
                    }
                }
                span.active{
                    position: relative;
                    opacity: 1;
                    border-bottom-color: #42bdeb;
                    &:after{
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: 50%;
                        width: 0;
                        height: 0;
                        margin-left: -3px;
                        border-width: 3px;
                        border-style: solid;
                        border-color: transparent transparent #42bdeb transparent;
                    }
                }
            }
        }
        .list{
            li{
                &:hover h6{
                  color: #42bdeb;
                }
                &:hover p{
                  color: #42bdeb;
                }
                margin-bottom: 7px;
                dl{
                    dt{
                        position: relative;
                        float: left;
                        width: 89px;
                        height: 62px;
                        img{
                            width: 100%;
                            height: 100%;
                        }
                        &:before{
                            content: attr(data-num);
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 16px;
                            height: 16px;
                            background-color: #E9573F;
                            border-radius: 0 0 5px 0;
                            color: #FFF;
                            font-size: 12px;
                            line-height: 16px;
                            text-align: center;
                        }
                    }
                    dd{
                        display: block;
                        font-size: 12px;
                        padding-left: 97px;
                        h6{
                          display: -webkit-box;
                          -webkit-box-orient: vertical;
                          -webkit-line-clamp: 2;
                          overflow: hidden;
                          text-overflow:ellipsis;
                          color: #1E1E1E;
                        }
                        div{
                            color: #D7D7D7;
                        }
                    }
                }
                p{
                    color: #1E1E1E;
                    font-size: 12px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    &:before{
                        content: attr(data-num);
                        display: inline-block;
                        width: 16px;
                        height: 16px;
                        margin-right: 10px;
                        background-color: #E9573F;
                        border-radius: 0 0 5px 0;
                        color: #FFF;
                        font-size: 12px;
                        line-height: 16px;
                        text-align: center;
                    }
                }
            }
        }
        .contribution-list{
            a{
                display: block;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                color: #1E1E1E;
                font-size: 14px;
                &:before{
                    display: inline-block;
                    content: attr(data-num);
                    width: 17px;
                    height: 17px;
                    margin-right: 13px;
                    background-color: #42bdeb;
                    color: #FFF;
                    font-size: 12px;
                    text-align: center;
                    line-height: 18px;
                    border-radius: 5px;
                    vertical-align: -2px;
                }
                img{
                    width: 25px;
                    height: 25px;
                    margin-right: 10px;
                    border-radius: 50%;
                }
                span{
                    vertical-align: -2px;
                }
                &:hover{
                    color: #42bdeb;
                }
            }
        }
    }
      .type{
        position: absolute;
        top: 0;
        right: 0;
        color: #FFF;
        font-size: 12px;
    }
    .left-content{
        .type{
            padding: 5px 10px;
            background-color: #4899e8;
            border-radius: 0 5px 0 5px;
        }
    }
    .right-content{
        .type{
            padding: 2.5px 5px;
            background-color: #f1cc2c;
        }
    }
    .img-contet{
        .price-nums{
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0px;
            display: flex;
            padding: 0 8px 5px;
            justify-content: space-between;
            align-items: flex-end;
            height: 35px;
            color: #FFF;
            font-size: 12px;
            background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.8));
            border-radius: 0 0 5px 5px;
        }
    }

    }
  }
}